/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.cms.dao;

import com.hlingsoft.cms.entity.MessageStatus;
import com.hlingsoft.cms.entity.SystemMessage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 达人申请
 * 
 * @author Zhangjiale
 * 
 */

@Repository
	public interface MessageStatusDao {



	/**
	 * 添加评论消息
	 * 
	 * @return Integer
	 */
	public long addMessageStatus(MessageStatus messageStatus);


	/**
	 * 未读评论
	 * @param appUserId
	 * @return
	 */
    public int getUnreadCommentMessageCount(@Param("appUserId")long appUserId);

	/**
	 * 未读赞
	 * @param appUserId
	 * @return
	 */
	public int getUnreadLikesMessageCount(@Param("appUserId")long appUserId);

	/**
	 * 未读关注
	 * @param appUserId
	 * @return
	 */
	public int getUnreadFocusMessageCount(@Param("appUserId")long appUserId);

	/**
	 * 未读系统
	 * @param appUserId
	 * @return
	 */
	public int getUnreadSystemMessageCount(@Param("appUserId")long appUserId);

	/**
	 * 读取评论
	 * @param appUserId
	 * @return
	 */
	public int  readCommentMessage(@Param("appUserId")long appUserId);

	/**
	 * 读取赞
	 * @param appUserId
	 * @return
	 */
	public int  readLikesMessage(@Param("appUserId")long appUserId);

	/**
	 * 读取关注信息
	 * @param appUserId
	 * @return
	 */
	public int  readFocusMessage(@Param("appUserId")long appUserId);

	/**
	 * 读取系统信息
	 * @param appUserId
	 * @return
	 */
	public int  readSystemMessage(@Param("appUserId")long appUserId);


	public List<MessageStatus> getMessageStatusByAppUserIdWithNone(@Param("appUserId") long appUserId);

	public int deleteMessageStatusByAppUserId(@Param("appUserId") long appUserId);

}
